import request from '@/utils/request'

export function singleForm(params) {
    return request({
        url: '/api/single.php',
        method: 'get',
        params: params
    })
}
export function commentList(params) {
    return request({
        url: '/api/commentlist.php',
        method: 'get',
        params: params
    })
}
export function addressForm(params) {
    return request({
        url: '/api/addressform.php',
        method: 'get',
        params: params
    })
}
export function newsDetail(params) {
    return request({
        url: '/api/newsdetail.php',
        method: 'get',
        params: params
    })
}
export function aboutView(params) {
    return request({
        url: '/api/aboutview.php',
        method: 'get',
        params: params
    })
}
export function onRed(params) {
    return request({
        url: '/api/onred.php',
        method: 'get',
        params: params
    })
}
export function offRed(params) {
    return request({
        url: '/api/offred.php',
        method: 'get',
        params: params
    })
}
export function viewList(params) {
    return request({
        url: '/api/viewlist.php',
        method: 'get',
        params: params
    })
}
export function searchView(params) {
    return request({
        url: '/api/searchview.php',
        method: 'get',
        params: params
    })
}
export function newsBuy(params) {
    return request({
        url: '/api/useradd.php',
        method: 'get',
        params: params
    })
}


